package com.example.win.android_banduyujia.peopleactivity.ui.mapView;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;

import com.baidu.mapapi.map.MapView;
import com.baidu.platform.comapi.basestruct.GeoPoint;
import com.example.win.android_banduyujia.peopleactivity.activity.activity.openactivity.DataActivity.TeachAddressActivity;

/**
 * Created by Win on 2015/9/6.
 */
public class MyMapView extends MapView {


    public MyMapView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
    }

    @Override
    public boolean onTouchEvent(MotionEvent arg0) {
        GeoPoint g = this.getProjection().fromPixels(MyIcon.w, MyIcon.h);
        Log.i("============", "wwwwwwwwww======" + MyIcon.w);
        Log.i("============", "hhhhhhhhhh======" + MyIcon.h);
        TeachAddressActivity.getPosition(g);
        return super.onTouchEvent(arg0);
    }
}
